package com.ygqh.baby.service;

import java.util.List;

import com.ygqh.baby.ao.QueryInfo;
import com.ygqh.baby.ao.ResultSet;
import com.ygqh.baby.po.YgProductImages;

public interface YgProductImagesService {

	List<YgProductImages> find();

	List<YgProductImages> find(Long productId);

	int findCount();

	YgProductImages findById(Long id);

	int deleteSoft(Long[] ids);

	int deleteSoft(Long id);

	int save(YgProductImages ygProductImages);

	int update(YgProductImages ygProductImages);

	int saveOrUpdate(YgProductImages ygProductImages);

	ResultSet<YgProductImages> search(QueryInfo queryInfo, String q);

	int saveBatch(List<YgProductImages> ygProductImages);

	int deleteSoftByProductId(Long id);

	YgProductImages findMainImgByProductId(Long productId);

}
